#include <stdio.h>
#include <math.h>
int main()
{
    int x,y,num;
    while (scanf("%d",&num)!=EOF)
    {
        float z;int t=0;
        for (x=1;x<=sqrt(num);x++)
        {
            for (y=x;y<=sqrt(num-x*x);y++)
            {
                z=sqrt(num-x*x-y*y);
                if (z==int(z)&&z!=0){printf("%d %d %d\n",x,y,int(z));t=1;break;}
            }
            if (t==1)break;
        }
    }
    return 0;
}
